#ifndef TYPEUNFOLDARRAYBUTTON_H
#define TYPEUNFOLDARRAYBUTTON_H

#include <QGraphicsItem>

class TypeEntryFrameItem;

class TypeUnfoldArrayButton :
	public QGraphicsItem
{
public:
	TypeUnfoldArrayButton(TypeEntryFrameItem* );
	~TypeUnfoldArrayButton(void);
	void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
	QRectF boundingRect() const;

protected:
	void hoverEnterEvent ( QGraphicsSceneHoverEvent* );
	void hoverLeaveEvent ( QGraphicsSceneHoverEvent* );
	void mousePressEvent(QGraphicsSceneMouseEvent* );

private:
	TypeEntryFrameItem* _frame;
	bool _isHover;
};

#endif
